package KK.Hunter.Effect
{
	import KK.Tween.TweenLite;
	
	import flash.display.DisplayObjectContainer;

	public class FadeEffect implements IEffect
	{
		
		public function FadeEffect()
		{
			
			this.init();
		}
		
		private function init():void{
		}
		
		
		public function Show(mc:DisplayObjectContainer,delay:Number):void{
			var target:Number=mc.alpha;
			mc.alpha=0;
			TweenLite.to(mc,delay,{autoAlpha:target});
		}
		public function Hide(mc:DisplayObjectContainer,delay:Number):void{
			var target:Number=mc.alpha;
			mc.alpha=1;
			TweenLite.to(mc,delay,{autoAlpha:target});
		}
		
		
		
		
		
	}
}